package com.noreply.springannotation.config;

import com.noreply.springannotation.bean.Car;
import com.noreply.springannotation.config.importdemo.C;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author noreply
 * @description
 * @datetime 2021/12/26 19:26
 */
@Configuration
public class BeanConfig {

    //@Bean(value = {"111", "222"}, name = "333")
    @Bean(value = {"111", "222"})
    public Car carMethod() {
        return new Car();
    }

    @MyBean(name = "333")
    public Car myCar() {
        return new Car();
    }
}
